<?php

ini_set('include_path', '../:' . ini_get('include_path'));
require_once 'Services/Omniture.php';

$namespace = 'mycompany';

$pageName      = 'testing';
$reportSuiteID = 'testingaccount';
$visitorID     = 12345;

$uri = "http://$namespace.112.2o7.net/b/ss//6";

$so = Services_Omniture::factory('DataInsertion', array('uri' => $uri));

$so->pageName      = $pageName;
$so->reportSuiteID = $reportSuiteID;
$so->visitorID     = $visitorID;
$so->ipAddress     = '1.2.3.4';

try {
    $foo = $so->sendRequest();
} catch (Services_Omniture_Exception $e) {
    echo $e;
}

echo $foo;

?>
